package com.kgis.map.control.basemaptool {

    import com.kgis.map.Map;

    import mx.controls.Alert;
    import com.kgis.map.control.basemaptool.IBaseMapTool;

    /**
     *extends this calss ,and override the <code>excute<code/> function to your own needs.
     * */
    public class AbstractBaseMapTool implements IBaseMapTool {
        protected var _url:String;
        protected var _toolTip:String;
        protected var _map:Map;

        public function AbstractBaseMapTool(value:Map) {
            this.map = value;
        }

        public function get map():Map {
            return _map;
        }

        public function set map(value:Map):void {
            _map = value;
        }

        public function get toolTip():String {
            return _toolTip;
        }

        public function set toolTip(value:String):void {
            _toolTip = value;
        }

        public function get url():String {
            return _url;
        }

        public function set url(value:String):void {
            _url = value;
        }

        public function execute():void {
            //执行测量函数
//            Alert.show('ssd');
        }

    }
}